import time
def puzir(list):
    startTime=time.time()
    swap=True
    while swap==True:
        swap=False
        for  i in range(len(list)-1):
            if list[i]>list[i+1]:
                list[i],list[i+1]=list[i+1],list[i]
                swap=True
    endTime=time.time()
    t=round((endTime-startTime)*1000)
    print(file.name,t,'мс')
file=open('sort1.txt','r')
list=file.read().split(', ')
for j in range(len(list)):
    list[j]=int(list[j])
puzir(list)